fix MatchData#[] on Ruby 1.8