render cache: use id(d) as the key.

This is needed so we can start defining __eq__ on various
displayables, even when we don't want them being considered the same
by the cache.