take into account differing return types for scalar ufuncs.

In numba a Python type is returned, while NumPy uses a Numpy scalar
instead. This is known and by design.