Fix a bunch of warnings, use Index{,Mut}

This builds upon #41 by silencing all the warnings with the latest rust nightly. It also modifies `Repeated` to use the new `Index` and `IndexMut` traits.