Fix crash in appendErrMessage.
Introduce a generic matcher type so that the MatchAny matcher can be
used both for request and for connection matching.