FIX: Make JS unmarshalling forgiving enough for null type objects.