Copy constructor for hash maps.