Set arrayIndex in tabarray type