Fix behaviour for simple stubs when stubbing core methods.

Fixes #403.

Please verify that my assumption about proxied methods is correct (per the comment in the diff.)

@soulcutter @alindeman @myronmarston