Fixes Issue 7829 - Function traits should be usable with subtyping.