fix #2479 call cfg() to get cfg
fix #2479 call cfg() to get cfg

also factored out unnecessary copy/map_items

mkeilman/sirepo,radiasoft/sirepo,mkeilman/sirepo,mkeilman/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,mkeilman/sirepo