There really is a drink called the "Tootsie Roll", but it's made with Kahlua and Sunny Delight orange juice instead of root beer.
Ted's hanging chad costume refers to the 2000 presidential election where the punched card ballots in Florida were incompletely punched and resulted in partially punched holes
There's a scene where Barney(dressed as a devil) is standing beside Ted. On the otherside is a guy dressed as an angel both giving advise. The devil represents temptation the angel conscience.