ENH: search typenumbers from typeobjects via a binary search
API: add PyArray_IsAnyScalarExact for a fast check for scalars
ENH: skip numpy_ufunc and priority lookup for numpy scalars

improves rmul with scalars, gh-5030
Merge pull request #5056 from juliantaylor/scalar-exact

add C-API PyArray_IsAnyScalarExact