app: make the transform tool's undo functions static