C++ memmgr: use shared_ptr
C++ memmgr: release activation records after combine or postprocess
C++ memmgr: fix issues related to memmgr type switch
Merge branch 'cpp-refcnt' into cpp-fix

Conflicts:
	runtime/src/ppl/delite/runtime/codegen/sync/CppSyncGenerator.scala