Allow single statements with foreach and with if-else in constraints.