[GH-68] Move nested scopes class, implement static access.