BUG: fix array_almost_equal for array subclasses

introduced in gh-4105/ab04e1ae0e8eca717bc7e42f3b0a60c9ff764289
Merge pull request #5048 from juliantaylor/subclass-test-fix

BUG: fix array_almost_equal for array subclasses