fix Issue 10288 - Direct lambda call and purity inference bug
Immediately returns ErrorExp if an error occurs
fix Issue 10296 - Nested template function call and purity inference bug
fix Issue 10254 - Purity correctness is broken with constructor