Removed ReferenceWrappingReducer. Cleaned imports in PlanOperators. Fixes in ReduceFunction.