ForwardFields Optimizer integration

This PR enables that forwarded fields are considered in the optimizer when they are not forwarded to the same output field.