Fix several inconsistent declarations identified by check_doc2 script
Add support for enums into rst ocv domain
Whitelist functions/structs in check_docs2 that are impossible to fix in 2.4