* fixed bugs in serialize-deserialize
* added support of null values
* correct handle of incorrect inputs