Fixed --to format bug in name-value-get

When --to field was set to name-value, the output was being set
incorrectly to the path_value writer.