pub fn run_length_decode<T: Clone>(encoded: &[(T, usize)]) -> Vec<T>
Decode a run-length encoded sequence back to a flat vector.