Fix ArrayCollector::insert() & ArrayCollector::insertAll() - bad indexing