Make is_enum work with types that can not be converted to references (incomplete arrays for example).