Support require/typed clauses in require/typed/provide

Closes PR 13901