Trying to understand why self._unit_type is not defined when we unpickle objects.