Fix create elements: Merge inside FOREACH and issue around creating relationships