Fix failure with Numpy 1.6. Fixes astropy/imageutils#22.