fixed SendMessage to handle message parts that are arrays