Add a length validator to ListParser for use with option.