Small bug in ParameterSweep

An averaging operation was missing from the ParameterSweep wrapper.