Stubbing non-public method should use same visibility. Fixes #150.

This will probably break some existing tests that were somehow relying
on the stubbed method being public while the original method was
protected or private.