Fixed generation of has<FieldName> checks.