Indexing and iterating now use i32 instead of u32.

Using signed integer will make it simpler to write decrement based loops.