Redone how related elements know about each other a little
Added test for Undo after relating GridElements.