When a user merge layers the resulting layer should be created taking into account the z-index of the merged layers. Originally reported here: https://community.aseprite.org/t/merge-with-z-index/22106