Handle array-type AMQP headers properly.