Add debug prints inside InputPacketStream::readPacket().
Check dimPrefix != 0 before reading in InputPacketStream::readPacket().