[improvement] Undo after "Paste and Replace"
- select multiple layers 
- run "Paste and Replace"
- run "undo"
- **undo only affect each paste and replace operation, one at a time, making it very costly to make a mistake**

The paste and replace should be registered as a single batch of actions, so that only one "undo" is enough to go back