Adding hash functions and fixing load balancer bug

Adding the md5 hash functions from javacompat to the ones from scala, as
well as fixing a bug in SimpleConsistentLoadBalancer where it didn't
create replicas when it appeared to intend to