Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
"it constant can be customised" doesn't read very well.  Maybe "it allows constants to be customized"?