set refs index to be undef if population not needed
Merge pull request #7 from andrewjpage/master

set refs index to be undef if population not needed