Made bounding box intersection code more robust.

- Code should now be safe from NaN's generated during the intersection test,
  as per http://www.flipcode.com/archives/SSE_RayBox_Intersection_Test.shtml

- Code should now be robust against false misses, as per "Robust BVH Ray
  Traversal" by Thiago Ize.