Heavily refactors flock.ugen.scope, improving its performance.