crop_tgrid fixes
crop_tgrid wasn't working with dask arrays. I've added some compute statements as there are places where we use boolean indexing - this can not be done with lazy arrays as the interpreter needs to know how big the resulting array will be. I've also added some astypes which are needed as the ireg_x returned by np.unique aren't necessarily integers.