fix __repr__ for NamespaceDirectory