Update respond_to? for Ruby 2.0

Marshal.dump will choke on the attempt to serialize an LDAP::Entry. This change fixes that by updating the signature of respond_to? to Ruby 2.0 level.