Reverse codes name/index pairs.

When the shapefile contains repeated name keys the resulting file omits the polygon.