fixes #781
Merge pull request #782 from amitree/master

Stubbing a method on any_instance_of(SomeModule) gives spurious error about prepended modules