remove checks for existence of Object.freeze in enums