Fixed issue with undo- and redo stack not being serialized/unserialized
on models.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>