add iprange2() function

This is exactly like iprange() but will test a given IP against the range.

@zzamboni asked for it, it's generally useful.

Docs and acceptance tests included.