Iterative tokenizer that converts Kotlin toString() output into flat display rows. Uses a class to avoid closure overhead that can cause WASM compiler OOM.