Minor bug-fix in GL calculation, where value of 'factor' was decided by variant index
instead of haplotype index.