Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
Seems odd to put this down here rather than at the top of the context....