ported gzip and toupper to the new transformation api
resources allocated by transformations are correctly freed