add hash/array support for upstream_cfg_prepend