Implement serialization of task model into unordered map

Issue #35 
@digawp  Please look, too.
Template doesn't work because there is some types that already have the implementation.