push @ranges, {type=>'LIST', last=>scalar(@list), values=>\@list };