Fix VanillaChunkEncoder.tryCompress to use inPos for the initialization of seen bytes.

By always initializing `seen` to to the beginning of the buffer, instead of using the given offset, the reuse of the hash table can, in rare cases, cause data corruption.  See the provided test case for more details.