Fixes uniqueness matcher for enum columns

In Rails 4.1, if the scope from a validates_uniqueness_of matcher is an
enum, next_value won't get the correct value, then tests will fail even
that validation works. This adds a way to check if the scoped attribute
is an enum, and correctly get the next value.