Fix parsing of dotted formals.

Closes PR 13576.