Add support for optimized requires.

See https://github.com/rspec/rspec-expectations/pull/476
for the discussion and background to this.