Toggle iTunes Repeat

Since iTunes 11 we can't simply change the repeat mode with a simple AppleScript anymore. The iTunes dictionary seems broken. This is a dirty hack that uses GUI scripting (using System Events) to make toggle iTunes' repeat mode from Off, to All, to One.