Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
Why the `rescue NameError` here?  I don't see a situation where this error would be raised.  Locally I tried your branch and commented out the `rescue` and nothing failed.