Add missing \grammarterm to some references to 'qualified-id'.