Fixes an issue with destroying/revoking generated enums

Closes #24