writeCuboid working for npz and hdf5.  RG heatmap for probmap types.