[450950] Generate distinct xmi:ids for duplicates
[450950] Avoid invalid characters in xmi:ids
[450950] Log unstable xmi:ids as Resource.errors
[450950] Test logging of unstable xmi:ids as Resource.errors