Use index as key function

At the moment, we look for `d.key`, and use `i` if it is not present. d3 uses `i` only, so it'll be less confusing and more consistent with d3 to use this instead.