Tiger backports: improve instance_variable_defined?