PHOENIX-1288 Fix selecting multiple array indexes

Don't attempt to remove the same KeyValue multiple times when
transforming multiple array index references into a single
filtered KeyValue.