Rename ARCHETYPE_XXX_VALIDATOR classes to AOM_XXX.
Move C_PRIMITIVE_OBJECT to primitive package
Rename C_COMPARABLE to C_ORDERED to fit openEHR naming scheme.
Other changed files for previous commit.
Refactor count to C_PRIMITIVE_OBJECT.count to list_count
Add various hacks to get round perenially broken compiler logic to do with expanded types.