Make undo / redo history more consistent

[#74712160]

 - save state during .load call
 - save state during .clear call
 - support loading without history update
Update example pages