dtqueue, stqueue, and trie improvements