Rename register_dispatch_value to register_function.
Get rid of the requirement to call register_dispatch for functions.
This will now be called when any dispatch function for it is registered.