Cigar: switch boundary checks to utils::check_max_boundary