Display operators using parentheses/backticks in error messages (#7848)
Use ffi_prep_closure_loc rather than ffi_prep_closure

The latter is deprecated. Part of #7718.