seq_file: Add helpers for iteration over a hlist