It seems suggested that the differential of a polynomial in $\mathbb{Z}_2$ is as I would expect:
$$\begin{align} &f = x^6 + x^3 + x + 1 \\ &f' = 6x^5 + 3x^2 +1 \mod 2 \\ &f'= x^2 + 1 \\ \end{align}$$
This seems very strange because there are situations like:
$$\begin{align} &f=x^4 + x^2 + 1 \\ &f'=0 \\ & \\ &f=x^5 + x^4 + 1 \\ &f'=x^4 \\ & \\ &f=x^7 + x^4 + x^3 + x + 1 \\ &f'=x^6 + x^2 + 1 \\ \end{align}$$
but if that is correct then so be it.
Are these correct?
What we see here is the formal derivative. If $A$ is a ring, then we can define the formal derivative $D\colon A[X]\to A[X]$ via $$D(\sum_{k=0}^n a_kX^k):=\sum_{k=0}^{n-1}(k+1)a_{k+1}X^k$$ (where $k+1$ is not an element of $\mathbb Z$, but rather viewed as the element $\underbrace{1+1+\ldots+1}_{k+1}\in A$, which may be zero $\in A$ even if it is nonzero $\in\mathbb Z$).
This looks exactly like the derivative $\frac{\mathrm d}{\mathrm dx}$ when applied to a polynomial function. However, in genreal, for example if $A$ is a finite field, we have no such thing as $\lim_{h\to 0}$ that is needed in the analytic definition of derivative. Consequently, $D$ cannot tell us things like how a function value changes if ew change the argument by a tiny amount - because in general there is no such thing as a tiny amount. Nevertheless, $D$ is a derivation and the most important rules of derivatives hold: Apart from being a linear map, we have the product rule $D(fg)=fD(g)+D(f)g$. Also, $D(a)=0$ for $a\in A$, but the converse need not be true any more.
By these facts, $D$ can still tell us things that $\frac{\mathrm d}{\mathrm dx}$ could tell us, provided they are not about the "forbidden" notion of "tiny changes". For example, $a\in\mathbb R$ is a multiple root of a polynomial function $f$ iff $a$ is a common root of $f$ and $f'$. Likewise, $f\in A[X]$ is divisible by $g^2$ (which means that any root of $g$ in either $A$ or a ring extension of $A$ is a multiple root of $f$) iff $g$ divides both $f$ and $D(f)$. Thus a simple algebraic calculation of $\gcd(f,D(f))$ gives us a polynomial that tells us where to look for multiple roots of $f$.
You had the example $f=X^4+X^2+1\in\mathbb Z_2[X]$ (or over any ring of characteristic $2$) with $D(f)=0$; thus here $\gcd(f,D(f))=f$, i.e., any root of $f$ is in fact a multiple root (there are none in $\mathbb Z_2$, but in suitable extensions); indeed, the factorization $f=(X^2+X+1)^2$ shows this explicitly.
In summary: In all your examples, you computed the formal derivative correctly and should not take the fact that "weird" things happen as an indication of error.