that works with `when ActiveModel::GlobalIdentification`. but I have another manual condition with the symbols thing:
```ruby
    def self.serialize(arguments, convert_symbols_to_string = false)
      arguments.collect do |argument|
    #....
        elsif argument.is_a?(Hash)
          Hash[serialize(argument.keys, true).zip(serialize(argument.values))]
        elsif argument.is_a?(Symbol) and convert_symbols_to_string
          argument.to_s
        else
          raise "Unsupported argument type: #{argument.class.name}"
        end
```