RLE Iterator
We compress a sequence with run-length encoding `encoding = [cnt0, val0, cnt1, val1, ...]` where each pair `cnt, val` means `val` appears `cnt` times consecutively. `encoding` has even length and may contain zero counts. The expanded sequence is the concatenation of those runs.