Do you expect by-name types to pop up here? If not, document that with an assertion.

Outside the scope of this PR, there are a bunch of places that call `isRepeatedParamType` and then `.typeArgs.head`, we should address that duplication.