some memory management fixes regarding SAT, aabb, obb