Trie-based grammar constraints for Gemma force_tools (#747)