Issue #1056: improve reshaping in topo_view_to_design_mat