Avoid defining multibyte method names in JSON decoding test for JRuby Compat

This change is similar to #11736 & in same way switched with fixed string & the index of the hash for method name. the index was added because otherwise, ruby will raise Error.
Merge pull request #11789 from gaurish/multibyte_methods

Avoid defining multibyte method names in JSON decoding test for JRuby Compatitibility
Adding method `#eql?` to `ActiveSupport::Duration`.

Currently, the following returns `false`, contrary to expectation:

    1.minute.eql?(1.minute)

Adding method `#eql?` will make this behave like expected. Method `#eql?` is
just a bit stricter than `#==`, as it checks whether the argument is also a
duration. Their parts may be different though.

    1.minute.eql?(60.seconds)  # => true
    1.minute.eql?(60)          # => false