Make sure that ids for nested properties are unique.