Match compiler: Aggregate match functions with the same pattern / function call signature

Reduces the number of generated functions from 2290 to 1916.