Modified transforms to allow heterogeneous types.