Better error message for not matching overload when expanded params conversion fails.
Try to recover incomplete ternary expression. Fixes #5195
Optimize entity conversion