Fix scheduler bug where assigning to the same register didn't prevent commuting, and fix register colorer unit test.