Converts enum typedefs to NS_ENUM or NS_OPTIONS as appropriate

Without this, they cannot be inferred by the Swift compiler.