Make nanops._has_infs work for additional dtypes and multidimensional arrays ( issue #7357 )
Merge pull request #7448 from toddrjen/naninf

Fix bug where ``nanops._has_infs`` doesn't work with many dtypes (issue #7357)