The cache entry must take into account the fact some functions operate on scalar types and some other on vectors of scalar types. Fixes #10147