10x+ speedup when 100 line script with breakpoints

cache variable scope/name fixed per jnthn++'s review of original patch.