Fix serialization of Defined/Nullable.