Fixed bugs for undo/redo when reversible, ...

lower bound, and upper bound, and equation edited and values set by
error messages.