handle TypeError in fit.wrapPars (along with IndexError)