Decode enums and bitmaps