Fixes issue with number based enum display. Fixes #1102
Merge pull request #1555 from neilang/master

Minor change to fix issue with number based enums