Fix standalone so it doesn’t infect other objects.

This also makes `extend RSpec::Mocks::ExampleMethods`
work properly.

Fixes #845.