template feature_generator_grammar on FeatureType - ref #2546