Pass Task struct to lua function. Changed type in Task struct to tag since this conflicts somewhere in dmd or luad.