Fix Class#singleton_class? for Ruby 2.1 compatability