Read a list with length.
length
If length is not provided, it is read first.
List readList([int? length]);