mgmt: update strategy-choice/set to return a versioned strategy name

refs: #1972

Change-Id: I1616574a4643884dac050d240b771423ec2a0846
diff --git a/daemon/mgmt/strategy-choice-manager.cpp b/daemon/mgmt/strategy-choice-manager.cpp
index 1193900..962349d 100644
--- a/daemon/mgmt/strategy-choice-manager.cpp
+++ b/daemon/mgmt/strategy-choice-manager.cpp
@@ -162,6 +162,7 @@
   if (m_strategyChoice.insert(prefix, selectedStrategy))
     {
       NFD_LOG_DEBUG("strategy-choice result: SUCCESS");
+      parameters.setStrategy(*m_strategyChoice.get(prefix));
       setResponse(response, 200, "Success", parameters.wireEncode());
     }
   else
diff --git a/daemon/table/strategy-choice.cpp b/daemon/table/strategy-choice.cpp
index 6500191..eedbc91 100644
--- a/daemon/table/strategy-choice.cpp
+++ b/daemon/table/strategy-choice.cpp
@@ -158,7 +158,7 @@
     return shared_ptr<const Name>();
   }
 
-  return entry->getStrategy().getName().shared_from_this();
+  return make_shared<const Name>(entry->getStrategy().getName());
 }
 
 static inline bool