Add index() method to get the current Iterator index

Add InvalidArgumentException if the constructor parameter is not an
array
Update comments