Add network_union aggregate.
Add firstsubnet, lastsubnet functions for cidr.