New C++ API: Fix isDefinedKind() to not be ambigious with respect to … (#2384)