Find qualified names of inner classes correctly.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>