**How to reproduce**
```
SELECT any(number * 2) AS n
FROM numbers(100)

┌─multiply(any(number), 2)─┐
│                        0 │
└──────────────────────────┘
```

```
SELECT any(number * 2) AS n
FROM numbers(100)
SETTINGS optimize_move_functions_out_of_any = 0

┌─n─┐
│ 0 │
└───┘

```
{
    if (ast && ast->as<ASTFunction>()->arguments->children[ind])
        return &ast->as<ASTFunction>()->arguments->children[ind];
    return nullptr;
}
void changeAllIdentifiers(ASTPtr & ast, size_t ind, const std::string & name)
{
    ASTPtr * exact_child = getExactChild(ast, ind);
    if (!exact_child)
        return;
    if ((*exact_child)->as<ASTIdentifier>())
    {
        
        ASTPtr old_ast = *exact_child;
        *exact_child = makeASTFunction(name);
        (*exact_child)->as<ASTFunction>()->arguments->children.push_back(old_ast);
    }
    else if ((*exact_child)->as<ASTFunction>())
    {
        if (AggregateFunctionFactory::instance().isAggregateFunctionName((*exact_child)->as<ASTFunction>()->name))
            throw Exception("Aggregate function " + (*exact_child)->as<ASTFunction>()->name +
                " is found inside aggregate function " + name + " in query", ErrorCodes::ILLEGAL_AGGREGATION);
        for (size_t i = 0; i < (*exact_child)->as<ASTFunction>()->arguments->children.size(); i++)
            changeAllIdentifiers(*exact_child, i, name);
    }
}
void AnyInputMatcher::visit(ASTPtr & current_ast, Data data)