Replaced CArchetypeRoot.archetypeId with archetypeRef
Fixed flattener on unconstrained attributes
Added date/integer/time serializers