Fixed type_size of lists, added contour IDs.