Moved PrimaryKey to a new package, so that is has its own namespace in the XML serialization. Additionally found out, how to express simpleContent XML types in ecore. See PrimaryKey.