Fix bug with transforming pure filters in impure `for`-comprehensions

Fixes #7.