test cast in parameter pool when propagate value to other parameter.
fix crash when deleting medCompositeParameter.