Moved class TaskT out from Entity classes.

Nested class was too complicated for the linker to resolve symbols. I
have filed an issue with DMD bugzilla. https://issues.dlang.org/show_bug.cgi?id=12721