Simplify encoding of RDF Term on-disk format.
Fix bug in rewriting of ID to Term B+ Tree index.