Try to make enum values inherit from System.Enum properly for issue #211