Fixed class name detection when using new and multiple levels (new Alpha.Beta.Gamma).