Unify the take glue functions for unique pointer types

These glue function just return void, no point in having a copy for each
type.
auto merge of #8146 : dotdash/rust/simple_take_glue, r=thestinger

These glue function just return void, no point in having a copy for each
type.