Save ids in feature.qualifiers and possibly re-use them.
Fix syntax error and a couple tests.