Emitter: add support for namespaces