adding namespaces stored in localTypeDeclaration