smartxml: optimize undo for setText transformation