ensure we typecast the value returned from the key function to a string to prevent NaNs from being created when d.key is undefined.