[history] Fix views for aggregation.
[history] Add finalize/definalize to aggregation.