Fix up undo manager (history) binding to ace editor.