Fixed bug in join_polygon_objects()

When objects being nested in the same hierarchy were passed to join_polygon_objects(), their global position was not retained. This was fixed by transferring the global position to the clone.