Fix copy-pasting of shapes after changing image resolution
Steps to reproduce:
- Create a rectangular shape
- Image->Scale Image: do not rescale the image, just change its resolution, say, from 300 ppi to 600 ppi.
- Select the rectangle, press Ctrl+C, Ctrl+V
The shape should be pasted in the original size.
The problem it that when changing image resolution we scale the parent
shape layer, but the shape itself is not changed. Therefore, when copying
the shape into the clipboard, we should also save the shape's absolute
transformation, so that it could be pasted correclty.