FIX BUG #8473 Cannot rename layers in composer legend

If the layer is a raster layer, the layer label is not updated with the
user defined text.
If the layer is a vector layer with simple symbol the symbol label
cannot be updated and be blocked at layer name. The label can be the
symbol user label, the layer user label, the layer title or the layer
name.