Fixed bug with nested SObj's not being added to undo.