Completely refactored Specification

- added serializers for IdentifierType
- added CountedArraySerializer