Added layerTypeId field to LayerDto so we can return the layers type id to the composer and check the type there. Until now, we just knew if the layer was WFS or WMS. Helps fixing #81616.