Nth dict

Fix the interaction between `nth` and dictionaries.