d3: Got rid of implicit any errors.

When compiling with tsc --noImplicitAny d3 was emitting a few errors relating to not having implicit any, I went through and fixed them up

Signed-off-by: Ben Jackman <ben@jackman.biz>