20.7
```
SELECT indexOf(['a', 'b', 'c'], toLowCardinality('a'))

┌─indexOf(['a', 'b', 'c'], toLowCardinality('a'))─┐
│                                               1 │
└─────────────────────────────────────────────────┘
```

20.8
```
SELECT indexOf(['a', 'b', 'c'], toLowCardinality('a'))


Received exception from server (version 20.8.3):
Code: 43. DB::Exception: Received from localhost:9000. DB::Exception: Types of array and 2nd argument of function "indexOf" must be identical up to nullability, cardinality, numeric types, or Enum and numeric type. Passed: Array(String) and LowCardinality(String).. 
```

https://github.com/ClickHouse/ClickHouse/pull/12550

/cc @myrrc 

&& !col_arg_const->structureEquals(col_lc_dict)
                
                && different_inner_types;
            const DataTypeArray * const array_type = checkAndGetDataType<DataTypeArray>(
                    columns[arguments[0]].type.get());
            const DataTypePtr target_type_ptr = recursiveRemoveLowCardinality(array_type->getNestedType());
            const ColumnPtr col_arg_cloned = use_cloned_arg
                ? castColumn(columns[arguments[1]], target_type_ptr)
                : col_arg_const->getPtr();
            const StringRef elem = col_arg_cloned->getDataAt(0);
            ResultColumnPtr col_result = ResultColumnType::create();
            UInt64 index = 0;
            if (elem != EMPTY_STRING_REF)
            {
                if (std::optional<UInt64> maybe_index = col_lc_dict.getOrFindValueIndex(elem); maybe_index)
                    index = *maybe_index;
                else
                {
                    const size_t offsets_size = col_array->getOffsets().size();
                    auto& data = col_result->getData();
                    data.resize_fill(offsets_size);
                    columns[result].column = std::move(col_result);
                    return true;
                }
            }
            Impl::Main<ConcreteAction, true>::vector(
                col_lc->getIndexes(),
                col_array->getOffsets(),
                index,