Added a warning about leastsq using with NaNs.

Added a warning that `func`'s retuned array_like must not contain NaNs or
computation might fail. Closes #3491