Allow serialization of non-object values in PrettyWriter.

It's already done in the writer. I just forgot about the prettywriter.