Fix for broken serializing null tests

Serializer will no longer attempt to serialize `null`, and Emitter no longer writes explicit
document ends for empty documents.

Fixes #6.