semantic: Implement foreach_reverse over an integer range.