[FIX] XQuery, GH-907: Correct inlining for FTDistance.
Merge pull request #910 from LeoWoerteler/gh-907b

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