change staticElem and staticAccessPath gen methods to the Env, so that they become globals, testing on dacapo