corrected access to genome values when printing the population to output file