Add text decoders and encoders for a number of types