The basic fix is that in respond_to? we do not return true for protected
methods. I made a few internal changes:
1. deprecated is RubyModule.isMethodBound(name, checkVisibility, checkRespondTo)
2. added RubyModule doesMethodRespondTo(name, checkVisibility)
3. changed what I think is appropriate consumers to call doesMethodRespondTo
but in worst case it will call isMethodBound(name, checkVisibility) which
is what it would have done anyways before this change. The only risk is
that I converted something which wants isMethodBound but that would indicate
some method further upstream calling a respond-to method and not really
wanting respond to behavior. The things I changed we obvious in that they
had respondto names.
4. I made a Helpers.doesMethodRespondTo so that RespondToCallsite and
RubyModule can share the same logic.