Implement Module#singleton_class? predicate method

This method has been introduced in Ruby 2.1 and is a convenient way to
check whether a class is a singleton one or not (see
https://bugs.ruby-lang.org/issues/7609 for further information).
Merge pull request #1822 from robin850/singleton-class-p

Implement Module#singleton_class? predicate method