fixed exceptions when Message Type ID is 65535

MessageSerialization and TypeMappedResponderWorkerFactory were affected