[Work-In-Progress] compile under beta 3 rebased

fixes maxpow4h/swiftz#61.

**but**, I'm not sure this should be merged.  I haven't been able to get the `ImArray` sort hack tested because Xcode beta 3 is crashing on me every couple seconds. If someone who knows swift better and who has a better relationship with Xcode Beta 3 could check it, that would be great, but this is very much at-your-own-risk.