Fix implementation of iterator protocol.
Fixed test cases and updated version.