Small modif to simplify the output of get_canonical_form_slice() in some cases.