Assert on stream type error.

Also allow a json boolean per stream.
Always create log record as object.

This means that write event listeners will always be passed a complex
object. Also bump minor version.