apigen:c++: fix issue with getProperties