shared_ptr ref -> const shared_ptr ref; fix to accept rvalues.