TEIID-3160 ensuring that function resolving won't narrow inappropriately