Implemented #hash for UUID
Implemented encoding of collection types

Needed for prepared statements with bound collection values. This closes #5