Bug fixes from Volicon trunk

- type error for id attribute
- Collection.Refs.deepClone should make shallow copy