Add NamedMatch for naming matches

Thanks to Matt Mitchell for suggesting this.