Introduce type matcher
Merge remote-tracking branch 'upstream/master'