Make Match and TextMatch fields be pointers.