Clean up a bunch of Ruby warnings

We'll probably never be able to run under `-W2` because of all the uninitialized instance variable warnings, but there are some softballs here that we may as well fix.