OsmAnd customization: challenge 1 - showing custom lines

It is said that OsmAnd maps can be customized. I read some texts on it, and tried it, and I do not get it working completely.

https://drive.google.com/open?id=1zsg9VJUFYW3duTFEObyPsYUkvNsUupmE is a file containing OSM data for the region from 73 to 74°W and 39 to 40° S. I combined the original OSM data with custom data.
Those custom data consist of ways having always a ank_type=ank tag. Next, they have a rsw_type tag with values rsw_max, rsw_int, rsw_min, and a numeric (positive integer) hmz, which I want to use as a name.

I get most of these lines shown in OsmAnd, but some are missing. I do not find any shared tags between those lines, apart from the fact that the lines with higher hmz values are more likely to be missing (but others with the same *hmz *value and same rsw_type are not). The name is never shown.

What changes have to be made to rendering_types.xml, and how must MY.render.xml look like?

If you get an answer here, great, but if you don’t, you might want to try https://groups.google.com/d/forum/osmand , as that’s where most OsmAnd questions get asked.

… and stay ignored, like https://groups.google.com/forum/#!topic/osmand/QEL53Tt0lMs

Partially solved: the OsmAnd rendering engine fails with rendering lines when they are closed (also when the first node and last node of a way are at the same location, the way is deemed closed).
Consequently, a change in the input data is required such that no “closed” lines are present.

Still, no text is displayed.