Use NumPy `ndarray`'s `type_num` to compare types
Use NumPy `ndarray`'s `type_num` to compare types

This simplifies a Python object comparison down to the comparison of two
C `int`s. So should be a significantly faster check.

jakirkham/rank_filter,nanshe-org/rank_filter,DudLab/rank_filter,jakirkham/rank_filter,nanshe-org/rank_filter,DudLab/rank_filter,DudLab/rank_filter,jakirkham/rank_filter,nanshe-org/rank_filter