Call setMatrixWorkspace for all 1d functions. Re #7572.
Added the unit test. Re #7572.
Merge remote-tracking branch 'origin/bugfix/7572_instrument_fitting_parameters_2'