**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 │
└───┘

```
#include <Common/typeid_cast.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTIdentifier.h>
#include <Interpreters/AnyInputOptimize.h>
#include <AggregateFunctions/AggregateFunctionFactory.h>
#include <IO/WriteHelpers.h>
#include <Parsers/ASTTablesInSelectQuery.h>
namespace DB
{
namespace ErrorCodes
{
    extern const int LOGICAL_ERROR;
    extern const int ILLEGAL_AGGREGATION;
}
namespace
{
    constexpr auto * any = "any";
    constexpr auto * anyLast = "anyLast";
}
ASTPtr * getExactChild(const ASTPtr & ast, const size_t ind)