improve hit tests a bit by adding more bounding box tests to skip more element comparisons