Update Swift code for Xcode 6 beta 3

- Use new array syntax
- Use new dictionary sugar where possible (encountered some compiler
  errors for some dictionaries)
- Fix build errors around dictionaries

Fixes issue #93.