Fix reversed loop bug.

`range_inclusive` always counts up, so `range_inclusive(1, 0)` is an
empty iterator. A correct way to iterate downwards is
`range_inclusive(0, 1).rev()`, that is, take an iterator `[0, 1]` and
run it backwards.