Migrate code from ScalarUDF::invoke and invoke_no_arg to use ScalarUDF::invoke_batch
And from ScalarUDFImpl::invoke and invoke_no_arg ScalarUDFImpl::invoke_batch.
The places in the code to be changed can be found by searching for #[allow(deprecated)] // TODO migrate UDF invoke to invoke_batch