Correctly handle integers in ipaddr filter

If integers are passed to 'ipaddr' filter, they will now be interpreted
as IPv4 or IPv6 addresses. Special format 'integer/prefix' will be also
interpreted and converted to IPv4/IPv6 CIDR format.