[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 GenericUDF and GenericUDAF

Author: Venkata Ramana G <ramana.gollamudi@huawei.com>