code to convert input in fitters moved to a comon function

Addresses issue #1329.
Also a check that the model is actually `fittable` was added to the base class `Fitter`.