Fixed a bug causing bad intersections with triangles.

Some unnecessary clamps were added in the intergrator. The integrator will be rewritten from the ground up anyway so I'll get rid of them later.