Add a test for setting default values when initializing from a dictionary with nulls

The actual functionality seems to work correctly, but there weren't any tests
for it.
Merge pull request #768 from realm/tg-null-dictionary-default-test

Add a test for setting default values when initializing from a dictionary with nulls