small fixes to region pipeline
add compiled compute_region_centres