Improved key management for pool cache and explicit clone with dict constructor.

Thanks to @wolever
Fix compatibility with sentinel client.
Fix compatibility with sharded client.