Add type hints to `synapse.handlers.message` and `synapse.events.builder`.