cpp: more fixes around generating model namespace documentation