serialize_when_none=False should imply same for Undefined