Change assignments to value not-reference in functions Refs #6373

The getParameter function returns by value but most places seem
to assign it to a reference. We get away with it as the parameter
is still in the same place in memory inside the vector but it's
misleading.