Update swift to beta3

Updated to beta3, new array declaration style,".." and a few other modifications.
Merge pull request #677 from uraimo/patch-1

Update swift to beta3