Support inner classes indexing.
Merge pull request #13 from bozaro/inner

Support inner classes indexing. Problem of compatibility will be resolved separately.