Fix serialization and deserialization dropping longrepr details.