index: extract a type for the nodetree
This is a first step towards exposing the nodetree as a Python type.
Differential Revision: https://phab.mercurial-scm.org/D4108
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.