Fixing arrays to ArrayInstance conversion