Improved param weights: handle Id and Tuple nodes