Fix #49555: Improve "function must be a string" error message Be more specific for the individual cases and provide relevant type information.
Fix freeing of dynamic call name We need to free op2 if the call construction fails. Also remove a redundant check for !call.