encodeArray for lists and sets datatypes
encode/decode inet tests