prevented errors exporting nested arrays as csv by converting them to json

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>