Allow nullables in serialization.

@bug W-2367465@

@rev fabbott@
Merging origin/goliver/master-pending-nulls-in-json into master