Fix error when marshalling null list.

Found a bug in the List field when trying to marshal an object where the list was None.  Added a test and fix.