Adding hardcoded logic for extend/update (for list/set & dict respectively)