Write all double values in one go. Fixed argument parsing.
p4#: 21746