Fix to correctly compute "path" of a namespace.
Previously, deeply-nested namespaces were becoming even more deeply nested.