make the models in the ReportGenerationCache properly invalidate

I suspect this will fix http://manage.dimagi.com/default.asp?128515 and
related cache report bugs.
Merge pull request #4035 from dimagi/cache-issues

make the models in the ReportGenerationCache properly invalidate