Check type of resolver_ctx->addrs.

Check the type of resolver_ctx->addrs and make sure that it is
ngx_addr_t* instead of in_addr_t*. addresses issue #839
Sounds good to me!