Fixed memory leak in scopes

Now they are lazy in the request as well so each request isn't
constantly banging on the global state hashmap without reason.