Proportion by time
Tombstone handling (maybe)
Fixes for sum_by and a few other changes