Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
This spec is mutating the configuration state and leaking it to other specs.  The example group should include the `with isolated configuration` shared context.