Record.cs and CompressedRecord.cs both contain the (almost) same code for detecting the type of complex column.