Add primop/pattern 'as' overloads.
Add hasAsExpression default init in Lambda.
Fix unsigned/int comparison warning in codegen.