initialize next block index (though in mmapped area it should be zero)
initialize next block index (though in mmapped area it should be zero)

also move variable decalaration into for loop

conveyal/vanilla-extract,conveyal/vanilla-extract,conveyal/vanilla-extract,conveyal/vanilla-extract