Properly stringify non-objects and non-arrays.
Merge pull request #1 from smurthas/master

Properly stringify non-objects and non-arrays.