1.fixed codegen for empty stmt
2.fixed ForeachAST
3.fixed function name in table