More about generic function dispatch and possible optimizations.