core: redirect gc to use core::trie