Added Message::getSerializedType