fixes https://github.com/lihaoyi/upickle/issues/39