Track the per-page contribution to the cache's dirty byte count.

If this is non-zero when a page is being discarded, fix the cache's count.

refs #635, #699