BUG: fix test error in Optimizer._fit_newton.

Without specifying dtype, this gives a TypeError when running
``test_optimize.test_full_output_false`` due to numpy
not allowing in-place addition of a float to an array of integers.