Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
I cover `instance_double`, `class_double` and `object_double` directly, what's the missing invocation?