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