Convert arrays to json strings.

Avoid "Array to string conversion" errors when sending arrays to monolog