lattice_point.cc: add sanity check for index of cone