[SPARK-3891][SQL] Add array support to percentile, percentile_approx and constant inspectors support

Supported passing array to percentile and percentile_approx UDAFs
To support percentile_approx,  constant inspectors are supported for GenericUDAF
Constant folding support added to CreateArray expression

Author: Venkata Ramana G <ramana.gollamudi@huawei.com>
Actually, It is other way round.  GenericUDAFResolver and its method GenericUDAFEvaluator getEvaluator(TypeInfo[] info) is deprecated and replaced by GenericUDAFResolver2. AbstractGenericUDAFResolver is for migration.
UDAF function like percentile_approx no longer supports the deprecated interface. So i have changed this to use AbstractGenericUDAFResolver(GenericUDAFParameterInfo).