Rename DefaultScope to BuiltinScope, improve compiler locals, add tests.