fix sending array to array port and object to object port