Fix bug around setting string values

At some point a bug was introduced wherein values of type string were
not parsed correctly and were written to file as an inspected array.
This commit fixes that issue.

Fixes #6