Dyad census detects integer overflow now and gives a warning. Fixes issue #497.