Added generator of enum type bindings.
In write_enums: made missing values more detecable.
Filled file enums.txt.
Removed old unused code.
Merge branch '1.8' into 1.9.
Added missing enums in enums.txt.