enhancing parser and AST to manage array declarations