Minor refactor of reload-code command

The main things here are:
* DRYing up the process method a little bit
* Replacing "obj.class == Class" with "Class ===", because the latter is
  more reliable in the face of BasicObject and classes that define
  `#class`