Added batch transform to group items in a stream.

Also fixed some debug labels.