Use d3.map in NewStylePlot. Also clean up some other code slightly [type-d3-map-set]

Done #890