Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
I went with `target` because I want a polymorphic interface (this could be a module or class given the different references).