If I don't serialize and save the entire undo stack then the player can potentially softlock themselves.
I think I need to clear the undo stack in a new level or something rather than having the game be technically open world, but it's unelegant and makes one of the intended mechanics troublesome.