fix the previous fix that was breaking cumtrapz when y and x where nd and add tests for y nd and x 1d.