In principal it is possible to create elements and array with leading * as part of the name.
But if you write an array on the same level with same name but one with and one without leading *, the two disctinct arrays are merged:
See in example in playground.
Fix:
add_field("test.$append","TEST1")
add_field("*test.$append","TEST2")
Result:
test: "TEST1"
test: "TEST2"
Expected:
test: "TEST1"
*test: "TEST2"
This came up in #589 when transforming marc data to edm, since rdf-macro expects * as refrence marker.