common: add Traverse function to ReimuTrie