REF: separate out _get_cython_func_and_vals
Refactor this out of an overgrown method.  I think there may be a small speedup available by using a check that will short-circuit infer_dtype, will look at this in an upcoming pass.