geojson plugin: simplify code
topojson: built up knowledge of attributes and geometry type + tests