Fix problems with CDataType in DebugMode
Merge pull request #2315 from abergeron/fix_cdata_debug

Fix problems with CDataType in DebugMode