Fixed static class constanct access in closures (where no class scope is
active)