force arrays to be saved as JSON arrays