Fixed a bug in the stream to enumerable code

Only results that have been read into the buffer should be yielded from
the enumerable.
Some updates to the Huffman code