[FIX] XQuery, GH-907: Correct inlining for FTDistance.