Improved the support for undo/redo in inhereters (not finished).

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