Numerical integration fixes

- Bugfix for dintegrate and iintegrate functions