title: Simple Swift class does not compile
body: <p>My simple class, ClassWithOneArray, produces this error:</p>
  
  <blockquote>
    <p>Bitcast requires both operands to be pointer or neither   %19 =
    bitcast i64 %18 to %objc_object*, !dbg !470 LLVM ERROR: Broken
    function found, compilation aborted! Command
    /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
    failed with exit code 1</p>
  </blockquote>
  
  <p>However, my class, ClassWithOneInt, does not.  Why?</p>
  
  <pre><code>class ClassWithOneInt {
      var myInt = Int()
      init(myInt: Int) {
          self.myInt = Int()
      }
      func encodeWithCoder(aCoder: NSCoder) {
          aCoder.encodeObject(myInt, forKey: "myInt")
      }
      init(coder aDecoder: NSCoder) {
          self.myInt = aDecoder.decodeObjectForKey("myInt") as Int
      }
  }
  
  class ClassWithOneArray {
      var myArray = String[]()
      init(myArray: String[]) {
          self.myArray = String[]()
      }
      func encodeWithCoder(aCoder: NSCoder) {
          aCoder.encodeObject(myArray, forKey: "myArray")
      }
      init(coder aDecoder: NSCoder) {
          self.myArray = aDecoder.decodeObjectForKey("myArray") as String[]
      }
  }
  </code></pre>