Allow other kinds of for clauses in for/hash:

Closes PR 14306