Set arrayIndex in tabarray type for conditionals

Everything is said :)