Fix dyad census instability, sometimes incorrect results were reported. Fixes issue #496.

Conflicts:
	src/motifs.c
Dyad census detects integer overflow now and gives a warning. Fixes issue #497.