[C++]: added semanticType() method to message stubs. Fixes #72