The documentation of UNLIST (in README.unlist), states (emphasis mine):
- <data-type>: target data type to convert the output values into. Alternatively, a domain can be specified as the returned type. If omitted, VARCHAR(32) is implied.
In reality, UNLIST defaults to CHAR(32).
I think the padding behaviour of CHAR is undesirable for this function, and it should default to return VARCHAR as stated in the documentation.