Support converting an IP range to an array of addresses

so that it can be used for expanding ranges in host alias input.