Updated <NSCoding> methods to match the new enum types.