Implement an idea for typesafe flags, just use it for bitmaps for now