Support inner classes indexing.

This change add support for indexing inner classes.