Another small speed boost... handle collision callbacks for both objects in a pair at once, and don't check against objects with a lower id.