Fix subtyping for keyword function types

Closes PR 14252
Closes PR 14257