[GEOT-4730] Create NearestVisitor locating the closest value to a given reference in a domain's attribute

Replacement for #386 includes docs and function wrapper