Change klass instance type on RMI
There are two main issues that the type is changed from shared_ptr
to reference.
First, if klass instance type is shared_ptr,
the destuctor of klass should be public not private.
(This coflicts with meyer singleton.)
Second, if we pass this pointer of object to EXPOSE method,
the object indicated this pointer should be destroyed by shared_ptr.
In such a case, the object should not be static type.
(It causes SEGFAULT by deallocating invalid pointer.)
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>