Make TR use rest annotations over expected type.

Closes PR 10936.