In the function prototypes and at the call sites, follow the pattern of the pre-message hooks. Don't include the command arguments. At the call sites, these are in serialized form and so are not available in typed argument form.
Re-enable the call sites, which were commented out to get the code to compile.
Closes #496.