It seems there is a bug with &categoryFoldersTpl in general (apart from the conditional problem).
Find attached a screenshot of the output for a test tree. Both the CatFolder and all the Sibling resources have got the link attribute rel="category". All are using the same page template, containing this Wayfinder call:
[[Wayfinder? &startId=`1` &categoryFoldersTpl=`templateA`]]
where templateA is the name of the following chunk:
<li><strong>[[+pagetitle]]</strong>[[+wf.wrapper]]</li>
As you see in the screenshot, not all of the "category" items are rendered with the templateA - in a unpredictable way.
It might be that it's a problem with duplicating resources - what I did creating the tree, of course.
Edit:
MODX 2.3.1-pl (traditional)
Wayfinder 2.3.3-pl
[ed. note: ottogal last edited this post 9 years, 2 months ago.]