fix a few regalloc bugs