Fix type of keyFunction in d3.nest().key(keyFunction)