Bug fixes for recent astropy coordinates changes

Bug fixes to deal with recent astropy coordinate changes; these bugs were introduced because of astropy's non-stable coordinates api.