BUG: fix array_almost_equal for array subclasses

introduced in gh-4105, ab04e1ae0e8eca717bc7e42f3b0a60c9ff764289