polys: fix some bugs in modgcd_multivariate() and modgcd_multivariate_p()

The number of evaluationpoints needed is now computed correctly. Also
the condition for discarding evaluation points has changed slightly.
polys: add some tests for modgcd_multivariate()