Fix _is_cidr and add a test.
Merge pull request #1 from gottreu/master

Fix as_string() (RT bug #49632)