ReadBases: move all boundary checks to utils::check_max_boundary