Fix num_rank in RLEWavelet