Halfway implementing first proposal for lossless export of repeating values.