set arrayIndex in most places

(not $near or $elemMatch yet)