You're munging `arguments` to an array in the type, so you can just drop this whole block and write:

```ruby
arguments.each do |argument|
    aug.set("#{entry_path}/argument[last()+1]", argument)
end
```