Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
Ok, I've added more specs to test the outcome of `ref.target`