Fixing multiple AST analyzer errors
Fixing multiple AST analyzer errors

1. New environments should be opened and closed for function body node
2. Identifier nodes' result_type should be set, not node_type
3. Fixing off-by-one errors in for loop analysis

anantsubramanian/graphL-compiler,anantsubramanian/graphL-compiler,anantsubramanian/graphL-compiler