SI-7505 Test case for pattern matcher + type alias bug

Progressed along with SI-7214 in acd74cae09.
Merge pull request #2616 from retronym/ticket/7505

SI-7505 Test case for pattern matcher + type alias bug