Added test for CSV_TSIO and fixed the bugs found.
Each time series sequence now has a data type.
Refactoring