fix(library/scoped_ext): bug when declaring nested namespaces