Fixes to Data Loader sample to close polygons.