Align end of statement handling with STD.

Fixes RT#102690 and maybe more.
Port most of STD's infix:lambda.

Gives good errors for if(1 < 2) { ... } style mistakes.