Report invalid clauses with FOREACH

Before semantic checking the clauses themselves