Added most of the support for a new PMT type: tuple.