Change mention of type to class.

It's probably clearer to use class here to avoid conflation with types, regardless of Rubys conventions.

Related to rspec/rspec-expectations#697

/cc @duckinator @myronmarston.