chg: update tasks.lib

Improve handling of internal data structures, especially intvecs.