Fix warning when running tests under Ruby 1.8
Fix 1.8 compatibility issues with Enumerable#wildcard_match?

Since String is an Enumerable under 1.8 we have to ensure that we don't enter a
recursive loop in the case that the String's #== method is stubbed or mocked.