Adds predicate methods for has_enum as well.