Scaling sub-formulas

In the Item Contribution form, sub-formulas are scaled correctly based upon the type of parameter. Cost parameters scale the sub-formulas by their yield. All other parameter types scale the sub-formulas by the total mass of the sub-formula.