Improved creation of midpoints cache in PTable.
Merge branch 'dev' into projections-results
Fixed: projection does not stop if stop requested while in checkpoint