make IsRequired and IsTrim optional in opFormItemGenerator (fixes #3428)