C++ memmgr: use shared_ptr
Merge branch 'cpp-refcnt' into cpp-fix
Merge branch 'delite-develop' into debugger

Merging changes from delite-develop branch