Support boolean values in DataEncoder and DataDecoder