omd_parser.ml: refactoring: +lift internal functions to global functions in order to ease the development and understanding based on interface (function types) and to avoid a very large `closurerec` +make all lines at most 80 columns (except for the generated part)