Move read_value and iterate_vector into values module