Allow array to be written to log file.

Close: #1256