SI-7209 Another test for a fixed bug with Java generics

Erased types were being treated as raw types and incorrectly
being cooked, this is visible in the REPL which reuses the symbol
table.

The fix for this came earlier in SI-7482.

Review by @paulp