Improved error checking for get_nearest and get_intersecting terms, basica GEOMETRY type sanitization in datum_t.