Fix FuzzyQuery generation (and add flag support)