Read a list of integers with length.
length
If length is not provided, it is read first.
List<int> readIntList([int? length]);