Fixs ByteArray.writeRawByte/writeString/readString bugs.