various bugfixes in d3.d.ts