Support CIDR /0 and fixes

Support CIDR /0 in ipv4 range parsing code. Moreover, some fixes would
allow more generic integer classes (like GMP or VLI) to be used. Works
still need to be done.