Workflow fixes around completing tasks and added type property to AlfrescoWorkflowTask model object.