AST: Replaced the Exp::genStmnt hack with a more generalized hack.