Fix two register allocation bugs.

1. A live range's weight wasn't being considered infinite when its
variable's weight was infinite.

2. Dumping register assignments was dereferencing array index -1.
Fix formatting.