Hi. There's slightly updated version of the patch where I use @3 and @4 in match.pd. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin