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.
Merge branch '1.9'.
Added missing enums in enums.txt.
Merge branch '1.9'.