* fix: incorrectly duplicating items on paste/library insert * fix: deduplicate element ids on restore * tests