Fix keyword function type conversion in TR

Closes PR 14309