Add TMS datatypes, merging and querying. Support in intervals pending.