Port check_match from oldvisit to <V:Visitor> trait API.