Pass data item *and* index to color function.

Typical d3 behavior is to pass a data item *and* its index. As the
render queue splits the original data set, we'll have to be slightly
more carefull about passing the correct index with the data item.