encoding: correctly handle failures to save refs
Looks the earlier attempt didn't actually fix this issue; I just re-ran these tests on my Mac, and they failed… Hopefully this does it!
Closes #397 (closed)
Edited by Dan Villiom Podlaski Christiansen