fixed bug in point-to-box computation: in the previous implementation the closest point type
was chosen to be the point type of the box; however, if this was less accuarate that the type
of the point, the result could be wrong; the current implementation chooses as closest point
type the point type among the two that has the most precise coordinate type;