Make merging of fields a bit more generic for nodes