ENH: optimize: curve_fit now warns if pcov is undetermined

Commented-out code (either remove or uncomment)