Added support for logging of undefined objects.

fixup!

fixup!
Added tests for logging undefined and added it to the docs.