fixing the heuristic for the BinaryIndex anyvalue constraints