Allowing putDynamicItem to specify a layer

Should have been part of last PR.  Syntax is a little iffy as you have this trailing number when using putDynamicItem(), however this parameter configuration does not break backwards compatibility.