Collections and UUID enhancements

This pull request does a whole bunch:

* automatic detection and conversion to UUID types (this should probably be an option/argument)
* Fully define the technical differences between collection types - writing works, reading is still in progress
* Fix some escaped strings issues
* Added tests for all of the above

I understand if you're not ready or don't want to merge this into master - there are many changes.