Bug fixes and cleanups in prefix tree node info code.
Use memtable for l0 index.
Bugfixes to new memtable-based l0 index.