Adds subnet support for #is_in?

is_in? does not support testing subnets for inclusion. 
This patch changes is_in? so it can work with IPs and subnets.
Fixes #9