Added support for array in location_cfg_append and in location_cfg_prepend