improved handling of errors when inverting covariance

also suppressing warnings in leastsq(), and only running
uncertainties.correlated_values() if actually needed....