collectors.cjdns_peer_stats: allow deriving peer_id from any key