Fix add() deprecation on task and configuration containers