add layerInfos in Legend dijit constructor

include fix to pass results of arcgisUtils.getLegendLayers() in the Legend widget constructor