Fix for Swift's new array semantics