Fix ray-aabb intersection code and test