reduce memory usage for tasks

This assert was commented out in the groovy version too; why?