Refs #9531. Integrated IFunction1DSpectrum into Fit and tests

Instead of having an extra property, fit now checks if the fit function can be cast to IFunction1DSpectrum to assign the correct domain creator.