Add new method Flag.IsBool
Refine
Improve flag handling
Improve tests