Fix a lost group layer children bug
We should deep copy all the cut/copied layers when doing an action, otherwise the user will me able to modify them and the clipboard will have incorrect values inside.
Fixes T1819