Add tests for comparisons
Raise warnings when comparing to non-enum values

This should help when migrating to enums; the warnings don't stop
execution, but they will get logged as exceptions.
Merge pull request #18 from akshayjshah/warn

Raise warnings on comparisons to other types