cor_dim moved from cg_list_bnd::internal_boundaries to constants
prefer counting from lbound to ubound of cg%[io]_bnd
allocate cg%[io]_bnd(xdim:cor_dim) to make space for separate corner segments (unused yet)