fix more scoping bugs
fix more scoping bugs

minimal testcases:

local a = {}
function a:b()
	return self -- false global
end

repeat
	local b = true
until b -- false global; this loop executes only once

local a = function (b) end
print(b) -- undetected global

for a in pairs { } do end
print(a) -- undetected global

oxyc/luaparse,oxyc/luaparse,mathiasbynens/luaparse,mathiasbynens/luaparse,mathiasbynens/luaparse,npmcomponent/oxyc-luaparse,oxyc/luaparse,npmcomponent/oxyc-luaparse