Cleaned up BBox intersection code, for a small speed boost.