Update to Swift beta 3

- changes array definitions from Class[] to [Class]
- replaces deprecated NSString(CString:) to String.fromCString(cs:)