DEPR: avoid some numpy 1.9 deprecation on warnings for invalid eq comparisons