StreamToBatch -- basically a GroupedIterator which guarantees an IndexedSeq
enable mini-batch updates
argh, fix infinite loops!