Add enums module.
Fix compiler errors with the enum operators.
Add has_flags, set_flags, remove_flags, combine_flags to enum module.

Also add tests.
More compiler error fixes and tests. Add operator== and operator!=