Prefix optimizations using ipaddr's CollapseAddrList() function.