SunOpta has recorded a loss for the year after the Canadian group's results were littered with one-time charges and higher costs.