treemanifest: implement iterentries()
To make tests pass with _treeinmem manually set to True, we need to
implement the recently added iterentries() on the treemanifest class
too.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.