"The common law not only prohibited a second punishment for the same offence, but went further and forbid a second trial for the same offence, whether the accused had suffered punishment or not and whether, in the former trial, he had been acquitted or convicted."