smartxml: pass transformation instance to impl & undo when needed