fix: degree test for subst(ideal/module/matrix...)