update get_shape_kind(), Term.iter_groups() for plate integration