tweak Tally<> code for gcc compile compat