Allow $foo:block nonterminals in expression position

Fixes #13678.