Rename patmatch to mcase after its main macro

Consistently use mcase as prefix for all functions.