Fix writing of raster when tc=FALSE.

Also add first crack at detecting identical projection systems with differing proj4strings.