fixes in TriTyperdata

closed #141