Fix warning
Where possible, maintain properties of symbol layer when changing symbol layer type (fix #8389)