Spoil identifiers in WHERE during inlining

Rewriting `MATCH a, b, c WITH length(c.prop) AS d, b WITH b, d WHERE b.bar RETURN d` was creating a `WITH` with duplicate aliases. This PR fixes that, by spoiling identifiers in `WHERE` (in addition to the current spoiling of identifiers in `ORDER BY`).