Make delegation work with the reserved words passed to `:to`

Fixes #16956.