Bugfix - zeroFillArray produced arrays filled with null values
Added string conversion to allow writing non-string values to a file too