rpc: Add support for resolver options callback