Yeah, you've catched me! I haven't used PCL diagnostics code for a long time. I always write it, but more as a sort of "internal documentation" than as real debug code. But of course, it should compile correctly, so it seems I've been a bit too lazy with this...
I'll recompile a few particularly complex modules with diagnostics enabled, to check if there are more errors. Thank you for pointing this out.