**Describe the bug**
```
milovidov-desktop :) SET allow_experimental_analyzer = 1

SET allow_experimental_analyzer = 1

Query id: b4494b8c-9f14-4d46-8db9-2cb992dcfcb6

Ok.

0 rows in set. Elapsed: 0.001 sec. 

milovidov-desktop :) SELECT arrayFilter(x -> notEmpty(concat(x)), [NULL, NULL]) FROM system.one ARRAY JOIN [1048577] AS elem, arrayMap(x -> concat(x, elem, ''), ['']) AS unused

SELECT arrayFilter(x -> notEmpty(concat(x)), [NULL, NULL])
FROM system.one
ARRAY JOIN
    [1048577] AS elem,
    arrayMap(x -> concat(x, elem, ''), ['']) AS unused

Query id: ca118c75-812b-4c83-bd30-1af64ed38635


0 rows in set. Elapsed: 0.003 sec. 

Received exception from server (version 22.13.1):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Cannot capture column 3 because it has incompatible type: got Array(UInt32), but UInt32 is expected.. (LOGICAL_ERROR)
```
"ARRAY JOIN {} requires expression with Array type. Actual {}. In scope {}",
                        array_join_node.formatASTForErrorMessage(),
                        result_type->getName(),
                        scope.scope_node->formatASTForErrorMessage());
                result_type = assert_cast<const DataTypeArray &>(*result_type).getNestedType();
                String array_join_column_name;
                if (!array_join_expression_alias.empty())
                {
                    array_join_column_name = array_join_expression_alias;
                }
                else if (auto * array_join_expression_inner_column = array_join_expression->as<ColumnNode>())
                {
                    array_join_column_name = array_join_expression_inner_column->getColumnName();
                }
                else
                {
                    array_join_column_name = "__array_join_expression_" + std::to_string(array_join_expressions_counter);
                    ++array_join_expressions_counter;
                }
                if (array_join_column_names.contains(array_join_column_name))
                    throw Exception(ErrorCodes::BAD_ARGUMENTS,
                        "ARRAY JOIN {} multiple columns with name {}. In scope {}",
                        array_join_node.formatASTForErrorMessage(),
                        array_join_column_name,
                        scope.scope_node->formatASTForErrorMessage());
                array_join_column_names.emplace(array_join_column_name);
                auto array_join_column = std::make_shared<ColumnNode>(NameAndTypePair{array_join_column_name, result_type}, array_join_expression, join_tree_node);
                array_join_expression = std::move(array_join_column);
                array_join_expression->setAlias(array_join_expression_alias);
                auto it = scope.alias_name_to_expression_node.find(array_join_expression_alias);