AST generation - SEGFAULT fix
AST generation - standard_function fixes