Modernizing enums and simplifying swift usage.

By swift usage I mean adding duplicates for value requirement into `GBOptionFlags` enum.