Fixes #83076:

* Added getNameWithoutWorspace and getLayerLabel methods to LayerDto.
* We use these methods in a new overload for the TreeNode constructor special for layers, that uses layerLabel to get the node's text instead of the layer name.