[fix] inconsistency over create/update datastream (close #3)
[fix] The csv encode will take the datapoint value type into consideration (close #7)