While you are setting this field, you might want to check for genotype level invariants as well (e.g., for a single sample, if a call at this site is phased, then all calls at this site should be phased).