Code cleanup: organized imports across the project
KeyValueEmitter: implement emit(key, values) as values.foreach { emit(key, _) }