Canonicalize matchers to permit quick equality testing