Function field use wrong name to convert domain
The method convert_domain uses the name from the clause instead of the field name. If the domain is nested, it calls the searcher (or search the domain) with the nested name instead of the field name.
So if the searcher uses this name, it could fail.