Osmand groups waypoints in XML files by their <type> tags. The GPX schema allows for inclusion of a <link> element in the waypoint type, which in turn can have a <type> element, see
here. Whenever a GPX file containing such a <link> element is imported into osmand, the parser obviously confuses the <type> tags inside and outside the <link> element, as demonstrated by the attached GPX file.