Topic/dictionary indexing tweaks

I noticed some dead code in one of the rename functions, and figured I would send a PR rather than make a comment (and add changes for my other comments - which you can choose to ignore).
Yeah I guess I screwed up here. The thrift structure should have been a `list`, not `map`. :(