added Task.type()
added SType parameter to TaskDb.read()
TaskDb no longer stores type of Task result
added generic parameters to Node, Function, Task and others