Add function declarations as required by style guideline

Script used to create them:

    let a="" | %s/^static .*(\_[^)]*)\ze\n/\=[extend(g:, {"a": g:a.submatch(0).";\n"}), submatch(0)][-1]/n | let @a=a
Change some ints into bools
Change flags argument to CommandParserOptions one