Fix #126: undo/redo on action bar was totally broken, and broke Type as a side-effect.