Fix for when ensure_index is presented with a list of keys.