api:cpp: fix in and double types