Added node for global decls and removed those names when fixing var declarations.