Add documentation and checks to CDataType.