fixed some bugs related to dtypes in df2shp