Fix possible compilation error in HashMap.get by avoiding inout and add HashMap.clear.