For issue #983 - updated writeCSv method in BasicPopulation to only select results from valid individuals.