hdl.rec: preserve shapes when constructing a layout.