templates_cpp: Add getType method to RemoteObjects

Change-Id: I651ced1a4363a95a080bf982fee1d11ed15e9054