SERVER-10471 enumerate indices w/array operators correctly, clean up and comment planner