Waypoints with name XY${FOO} should appear as waypoint of cache GC${FOO}. This mostly works but not always. I think the problem may be that Locus expects specific order of waypoints in the GPX file. I find it surprising as the GPX specification does not impose any restrictions on the order. It's a set, not a vector, right?