Cache lvar scope results

* Another pass needs to be done, lots if singleton methods can be moved
  into the LocalVariableScope class.