Minor cleanups of Tally/Bag stuff for gcc compat