bugfix in astropy.wcs return type handling