Test for HHH-8615 (no fix).

I'm not sure whether or not the state sharing that's happening around type parameters is intended, accidental, or a little of both... so this is just a test to reproduce the issue.