Fix canonicalisation of matchers (see new tests)

@TabDigital/api