KeyValueParser/KeyValueWriter complete implementations (tested slightly)