resize should go first

This PR fixes a bug that I introduces in my last PR where the result resize should go before the argcheck because src1 is sometimes equal to result.