Fix mvn.rnd(1xD, 1xD)

I found this bug, higlighted in the new test case.
I think we need to refactor the resizing part of dimension check in mvn.rnd,
to make it clearer.