More optimization of QCF and instantiation caching.  Fix CDInstMatchTrie.