Create new UUIDs when duplicating files or folders (see #6301)