Compare enum constants case-insensitively
Merge pull request #353 from raboof/minorimprovements

Compare enum constants case-insensitively