ENH: check if type is basic python type before checking for __numpy_ufunc__

improves performance of scalar conversions (x + .5) by ~30%.