Bitstream: Add 'throwIOExceptionOnEOF' mode; fix certain EOS situations (flush, skip)