Added JSON.stringify() when reporting failures to output objects as strings and not 'object'.
Added JSON.stringify() when reporting failures to output objects as strings and not 'object'.

jeffschwartz/preamble