Don't reset plugin state on undo.
More undo improvements...