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