iterator: add a method for reversing a container

this works on any container with a mutable double-ended iterator
enable tests for the container tutorial