GPII-356: Added the new quantize transform function with tests.. plus a minor cleanup in transformer