Bugfix: Undo does not work when copy/pasting layers (or groups), it should remove the layer that was pasted