convert arrays to lists when converting data to geojson
replace .xy attribute with .vertex attribute