Rearrangements of ionized carbonyl compounds