Improved the support for undo/redo in inhereters (yet even closer to a
final first working revision).

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