Kompile - fixing an issue with variable checks. Anonymous variables are not allowed on the RHS of rewrites.