Properly serialize nulls in covariant collections.