Make struct type info refer to protected identifiers in typed modules.

Because TR does not provide the unprotected references, the struct info
it exports shouldn't refer to them.

Closes PR 13160.