Clean up generics in dht package

Patch by blambov, reviewed by jmckenzie for CASSANDRA-8171