Fixes bug around MERGE inside a FOREACH inside a FOREACH
Allows MERGE to be used with no known points