Make TransformEditor to work also when undo manager is not used + some cleanup.