Persistent RefTree; isIndexed -> lastIndexed.

The persistent reftree impl is wildly inefficient, but we'll sort out improving
it after we run the current implementation around the block a bit.
Added lastModified().
Some trivial assertage.
Use lastIndexed().
Further machinations to work around MapDB bullshit.