Add legacy ‘Syntax’ deserializer for GrammarRegistry