trie: simplified the kvs inplace interfaces.
trie: added a single bucket test.