Fixes to cache propagation 

This fixes how the cache is propagated through the catalog, to the RasterLayers.