Refactor AST & move variables in __rpn_env