Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
It's probably also worth stating that rspec-rails takes care of this for the ActiveRecord case, so users don't think they need to do this.