Treat Enum Flags as a Numeric Type and Encode it in a map key. fixes #328