restructured the state visualizer to paint objects by class, in the
order that object class painters are added to the visualizer