Properly convert IdentityEnumArrayType values for CriteriaQueries
Don't attempt to convert Enums to Integers twice

Seems like this function gets called when we're using a CriteriaQuery.
However, in that case, we've already done the converting to Integer
prior to that query, so these should already be in ordinal form