minor fixes to the closest point on mesh stuff and

also added ability to add items to octree with a user-provided
intersection predicate