Add max stack size for the undo manager
Use while
Merge pull request #20 from guardian/oja-undo-manager-max-stack-size

Add max stack size for the undo manager