Change settings to Contraints constant
Refactor and fix numerous bugs in genotype shape converter