Added reflection to deserialize Task subtypes from JSON
Do not serialize state type into json, when reading state specify classname explicitly