generic-match-head.c (types_match): Handle non-types.