Make sure to flush collector before encoding block
Don't return negative length in CompoundDataSource
Avoid buffer overrun in ByteArrayDataSource
Don't forget to update array offset in ByteArrayDataSource.read()
Reset pending state when resetting uncompressed block
Add missing bias when trying to sort one-character blocks

Closes #1