Track records lengths as well as positions.

Track records lengths as well as positions in the leaf pages. Write the
lengths in addition the positions in the positions entry.

Closes #137.