Add return value variant of integrateGridFunction
Now that we have auto etc., this is a far more convenient interface and should not lead to significant cost.
Now that we have auto etc., this is a far more convenient interface and should not lead to significant cost.