add a case of corner-sharing to the full layer termination in the GenX script