Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
Correct about mutation, I did try the anonymous route but it seems we can't get the class for those.