Accidentally removed lookup-global. Replaced it.
Merge remote-tracking branch 'origin/scope-rewrite' into scope-rewrite
Fix for shadowing bug. Needed call to lookup-global in assign-to-id. Was accidentally removed at some point.