add uuid, uuidarray and varchararray

Add support for uuid encode/decode and support for varchararray and uuidarray.

This patch builds on the cm/sync-with-upstream branch which should be merged first.