Improved Resultant Attack Against Arithmetization-Oriented Primitives