Reverted int values to be encoded as long in write_array(), as longlong not supported in AMQP-0.8
fixed exception msg in test