[Fixes #1094] Fix bug in ClassAndModuleChildren

ClassAndModuleChildren incorrectly flaged class with a single method

see #1094