Simplify by extending ArrayIterator.

In this case, we just need to override the `offsetSet` and `offsetUnset`
methods to set the iterator in read-only mode.
Merge pull request #161 from Hywan/elementlist

Simplify by extending ArrayIterator.