rename as_alleles to as_haplotypes; rename pack_diploid_genotypes to pack_diploid, similar for unpack_diploid_genotypes; remove noop code
implement mds