wrote a leaf-seq and keyval-seq which return a sequence of all the
leaves and keyvals in the tree, respectively.

still need a function to return a subset of keyvals, without
traversing all of the leaves