Fixes for beta5

I made all the fixes necessary for the framework to work in Xcode Beta 5.

Due to some changes in the type inference, I had to add an explicit cast to the Int literal -- Swift was trying to convert the TaskValueWrapper<Int> to a MirrorDisposition rather than an Int.

Let me know if you figure out a cleaner fix.