... which contains two definitions for KeyValuePair. I can see this occurs as the code in TsModelBuild.Add() (line 73) checks to see if the type is already in the model, but as the type is different if the generic args are different I think the line should get the open-generic type instead: