Add function to key.

Functions and lambdas both have __hash__ callable method, thus no func.__name__.