Attempted dual tpt / tpe conversion + basic support for records