Call setMatrixWorkspace for all 1d functions. Re #7572.
Added the unit test. Re #7572.
Merge branch 'bugfix/7572_instrument_fitting_parameters_2' into develop