Hm I thought that we merge from right to left in the merge function and second argument has precedence (at least we do this in JavaScript merge function).

In case the same is true for lua version, we should switch first and second argument to get the expected behavior, right?