Fix detection of type of object in DiskToSQL