subpopsVectorToList function

Convert subpopulation vector to a list of indices