scipy.optimize.leastsq: allow ValueError as well as LinAlgError when inverting curvature matrix
Merge pull request #417 from newville/master

BUG: optimize.leastsq: deal with NaNs when inverting curvature matrix