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

improves performance of scalar conversions (x + .5) by ~30%.
Merge pull request #4044 from juliantaylor/scalar-conv-enh

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