Fix warnings about missing parent for class members
Fix several inconsistent declarations identified by check_doc2 script