Add position entry entry number to footer.

Add the entry number of the last position array entry to the position
array bookmark in the footer. Assert that the entry number is correct
when reading a leaf page.

Closes #182.