[FIX] adding namespace declaration on wrong level after insert

### Query: ###
```xquery
copy $a := <a xmlns='x'/>
modify insert node <a xmlns='y'/> into $a
return $a
```
### Result (before fix): ###
```xquery
<a xmlns="x">
<a xmlns="y" xmlns="x"/>
</a>
```