added var_bag to compute the bag of variables

intended use case: getting rid of variables that are only used once
Replace variables only used once by '%_'

Saves a little bit of time and makes the sequences easier to read