Added proper support for serializing tasks/comments.