Allow calling Selection.append( function(datum, index){...} )

Relatively small improvement to Selection.append function to allow passing data-dependent function instead of predefined string.