fix missing dictionary conversion in get_next_entry and add new test for this