Convert Relation.setMember to use the undo system. Fixes 3586. This stuff could do...