     for (key, object) in dictionary {
         switch object {
         case let object as XPCArray:
-            var anyArray = [AnyObject]()
-            for subDict in object {
-                anyArray.append(toAnyObject(subDict as XPCDictionary))
-            }
-            anyDictionary[key] = anyArray
+            anyDictionary[key] = object.map { toAnyObject($0 as XPCDictionary) }
         case let object as XPCDictionary:
             anyDictionary[key] = toAnyObject(object)
         case let object as String:

    if path.absolutePath {
        return path
    }
    else {
        return NSString.pathWithComponents([NSFileManager.defaultManager().currentDirectoryPath, path]).stringByStandardizingPath
    }
}

/**

        printSyntax(text: arguments[2])
    } else if arguments.count == 2 && arguments[1] == "-h" {
        printHelp()
    } else if let xcodebuildOutput = run_xcodebuild(Array<String>(arguments[1..<arguments.count])) {
        if let swiftcArguments = compiler_arguments_from_xcodebuild_output(xcodebuildOutput, language: .Swift) {
            // Spawn new processes for each Swift file because SourceKit crashes otherwise
            let swiftFiles = swiftFilesFromArray(swiftcArguments)
            println("[")
            for (index, file) in enumerate(swiftFiles) {
                printSTDERR("parsing \(file.lastPathComponent) (\(index + 1)/\(swiftFiles.count))")
                if let selfOutput = run_self(["--single-file", file] + swiftcArguments) {
                    println(selfOutput)
                    if index < swiftFiles.count-1 {
                        println(",")
                    }
                }
            }
            println("]")
