Don't leak types in enum converter
Merge pull request #503 from andrewcollette/issue_502

Don't leak types in enum converter