IsCodeword( obj )
IsCodeword returns true if obj, which can be an object of arbitrary
type, is of the codeword type and false otherwise. The function will
signal an error if obj is an unbound variable.
gap> IsCodeword(1);
false
gap> IsCodeword(ReedMullerCode(2,3));
false
gap> IsCodeword("11111");
false
gap> IsCodeword(Codeword("11111"));
true
GAP 3.4.4