fix #661: move cumtrapz to nt2