Packet.messageType property, tests, some minor fixups