Add failing test to show behavior of custom serializer with nils.
test cases by fblee

Merge remote-tracking branch 'fblee/master'
serialization test: respect root settings when root object is nil
Don't fail if object is nil, render null
Merge pull request #213 from michihuber/fix_rendering_nil_with_custom_serializer

Fix rendering nil with custom serializer