Add dispatch() to top-level header file.
Customise make_executor hook for chained function objects.