Matrix: flatten resampler and test on refined geometry See merge request !111
mentioned in commit 7db97cd5