Delegation works with reserved words passed to `:to`

Fixes #16956.
Merge pull request #16964 from Agis-/issue-16956

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