Correct bug where $v0 is not saved in save/restore state (#26, #27)