Cache only resolved types not expression to report correct error location. Fixes #15035
Inline more is instance checks