layout_by.rowrecs_to_blocks_spec function

Use transform spec to layout data.