Ensure that ni.lastIndex is *always* accurate:
- All code uses v.setFileIndex() to change v.fileIndex.
- v.fileIndex calls ni.updateLastIndex, which updates ni.lastIndex if necessary.

Leo build: 20141023123353