Make the free variable finder in TidyPgm work properly
We were getting exponential behaviour by gathering free variables *both* from the unfolding *and* the RHS of a definition. While unfoldings are of limited size this is merely inefficient. But with -fexpose-all-unfoldings it becomes exponentially costly. Doh. Fixes Trac #5352.
Showing with 25 additions and 13 deletions