Refactor GenePop's _FileIterator

This way the file open/close is (typically) in one place.