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

Add to documentation and wrap up NearestVisitor in Collection_NearestFunction
Fixe typo and cleanup references to attributeName
Restrict optimisation to PropertyName expressions

Replacement for #386