Z-index is retained during undo. Also added ability to move objects to the front or back in z-order.
Merge branch 'master' of https://github.com/Dirbaio/NSMB-Editor