handled guid creation for layer and mapobject duplication