BUG: make curve_fit() work with array_like input.  Closes gh-3037.
Merge pull request #3166 from rgommers/curvefit-list-input

BUG: make curve_fit() work with array_like input.  Closes gh-3037.