api:cpp: support Log, IRhoExtension in base classes, support complex object to json conversion