PERL-307 fix drop_dups option for ensure_index