Merge pull request #165 from nvzqz/master

Change derive behavior for enums with less than three variants