Fixed bug in Swift array properties where array properties accessed the wrong property

Fixes #668.