Fixed attribute error in astropy.wcs.WCS.wcs added a test to check the pix2world method
Fix warning handling
Merge pull request #1981 from mdboom/wcs/lattyp

Rebase of #1463