Only keep local vars that are actually referenced from subscopes. This should reduce trampoline garbage quite a bit.