[GEOS-4149] Make continuous wrapping for raster layers work like it does for vector layers

And general projection handling improvements too, this is a follow up to the geotools https://github.com/geotools/geotools/pull/497, making stuff work in the direct rendending path too