move CacheDict fix to handle generator inputs here from activitystreams/twitter.py

for snarfed/bridgy#22