Send onDocLoaded notify after undo/redo. Fix MgShapes::hitTest.