Add in support for GenericForeignKey fields.

GenericForeignKey weren't being included in a model's cache keys, but they should have all the same cache invalidation implications as normal ForeignKey fields, so this commit adds logic to be aware of them.