Bug: ``__reduce__()`` may return ``None`` as object state. By handling this
case porperly, sets can now be serialized.