Correction: The correct rewrite is "$x = $x" → "case when $x is not null then true else unknown end". But in most cases unknown and false have the same effect.
By the way. I don't have a firm ETA when that commit will be pushed to master. If you want to extract just the parts related to the "$x = $x" rewrite (including the tests I added) and commit separately, be my guest.