marshal top level nil correctly
Marshal top-level nils correctly.

Merge rogpeppe's branch '001-allow-nil-marshal'.