fix return type from _apply_numpy_function.   Now that I think about it,
that should probably be made public too