Adding a second test case for inner inner objects.
- Make sure that the enclosing object is passed to the indexer also for modules.
- Only strip $ at end of name.