Fix toIterator bug (#988)

Actually many toIterator is probably broken due to this bug. Unless the sourceFields are the default ordering of the tuple, it was broken.

Closes #988