80%~ faster by avoiding more scoping

Additionally remove more repetitive scoping.

Minor typo fix in bench.js
tweak resolve; pass getSession in instead of calling from scope