fix clone() for HashMap/HashSet