Haplotype-Based Genotyping in Polyploids