gf: Fix gf_irreduciblep() for small-degree polynomials.