Add gammapy/utils/array.py and fix test error in gammapy/irf