More clean up in AST nodes to code; fix regressions

1. Some clean up for AST nodes to code
2. Handle AST nodes to code for member variable, typed variable and so on.
3. Fix regressions.