Add support to encode/decode uuid and uuidarray types