fix: Prevent writing a non-scalar to a CSV field