docs: def encode(self, value):
          """encode(value) -> bytearray
  
          Encodes the given value to a bytearray according to this
          PrimitiveType definition.
          """
          opcode = self.cmddict[value].opcode
          return super(CmdType, self).encode(opcode)