Fix the Newton-CG method
Check that axpy adds consistent types