Fixed a bug in which some bytes would get corrupted if dictionary indexes were offset into the middle of a byte.