Fix t/enums.t for older versions of Test::More

Like the one shipped with perl 5.12.5, whose is() did not yet handle overloaded
objects consistently.