switch all ids from locally unique to globally unique ones (in preparation for model improvements)