More tests and debugging of n-dimensional redistribution.