Undo for setProperty and addNode