Add TaggedMatch for naming matches

Thanks to Matt Mitchell for suggesting this.