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

fixes #781