Bug fix for attribute lattyp

The code on lines 814 and 784 had attribute self.wcs.lattype which raised an AttributeError. The class in question has attribute 

astropy.wcs.Wcsprm.lattyp

So I edited those two to reflect the variable name