BUG: fix cumptrapz that was raising an exception when x !=None and axis not in (0, -1)
fix the previous fix that was breaking cumtrapz when y and x where nd and add tests for y nd and x 1d.
STY: some style cleanups for integrate.cumtrapz().
Merge branch 'pr-3068' into master.

See https://github.com/scipy/scipy/pull/3068
MAINT: rename optimize.Result to optimize.OptimizeResult.

See gh-3010 for discussion.
TST: silence output from basinhopping test case.
Merge pull request #3156 from rgommers/optimize-result

Rename optimize.Result to OptimizeResult
fixed spelling error: s/exceedes/exceeds/
Merge pull request #3162 from garrison/sparse_spelling

MAINT: sparse: fixed spelling error: s/exceedes/exceeds/
MAINT: special: Fix whitespace in cephes/pdtr.c
ENH: special: pdtr and pdtrc give the correct limiting value when m=0.
ENH: special: return 0 for sufficiently small lambda in pdtrik.