Added partial fix for #80031: layers of raster types can be loaded into ...

...the toc (and the map).