Added further tests for raw matching of generic types

Issue: SPR-11034
Issue: SPR-11004