respond_to? now doesn't return protected methods.

This is one of changes introduced in Ruby 2.0. Not sure if it is the best solution, but it works for me.