This commit introduces the AbstractSingleValueEncoder, an abstract base class for encoders that only handle a single value.