Support the smart_ptr policy BY_EMVAL and pass the original smart pointer if the parameter has an identical type.